$("#frm_harga").validate({
	errorPlacement: function(error, element) {
		element.parent().after(error); 
	}, 
	rules: {
		kode:{required:true},
		nama:{required:true},
		satuan:{required:true},
		harga:{
			required:true,
			number:true}
	},
	messages: {
		kode: "Kode material harus diisi.",
		nama: "Nama material harus diisi.",
		satuan: "Satuan material harus diisi.",
		harga: {
			required:"Harga harus diisi.",
			number: "Harga harus angka."
			}
	}
});